<template>
	<view class="detail-container">
		<view>
			<!-- <view class="status">
				<text>TS20201023001</text>
				<text style="color: #43CC46;">已完成</text>
				<text style="color: #7D77EF;" v-if="ticketDetail['工单状态'] === 'unclaimed'">待派发</text>
				<text style="color: #FFB93F;" v-if="ticketDetail['工单状态'] === 'pending'">待处理</text>
				<text style="color: #3080FB;" v-else-if="ticketDetail['工单状态'] === 'handling'">处理中</text>
				<text style="color: #43CC46;" v-else-if="ticketDetail['工单状态'] === 'completed'">已完成</text>
				<text style="color: #FB5656;" v-else-if="ticketDetail['工单状态'] === 'abandoned'">已废弃</text>
			</view> -->
			<view class="order-content">
				<view class="content-item">
					<text class="item-name">检查点类型：</text>
					<view style="word-break:break-all;flex: 1;">{{checkPointType[pointInfo['检查点类型']]}}</view>
					<!-- <text>{{ticketDetail['工单编号']}}</text> -->
				</view>
				<view class="content-item">
					<text class="item-name">检查点名称：</text>
					<view style="word-break:break-all;flex: 1;">杭州朗米科技有限公司</view>
					<!-- <text>{{ticketDetail['联系人姓名']}}</text> -->
				</view>
				<view class="content-item">
					<text class="item-name">检查点地址：</text>
					<text>五常西溪软件园金牛座B1-2008</text>
				</view>
				<view class="content-item">
					<text class="item-name">网格员：</text>
					<view style="word-break:break-all;flex: 1;">王一一</view>
				</view>
				<view class="content-item">
					<text class="item-name">创建时间：</text>
					<text>2020-11-20 </text>
				</view>
				<view class="content-item">
					<text class="item-name">完成时间：</text>
					<view style="word-break:break-all;flex: 1;">王展示</view>
				</view>
				<view class="content-item">
					<text class="item-name">检查结果：</text>
					<view style="word-break:break-all;flex: 1;color: #43CC46;">合格</view>
					<!-- <text>{{renovationTicket['施工单位']}}</text> -->
				</view>
		</view>
	</view>
	</view>
</template>

<script>
	export default {
		components: {
			
		},
		data() {
			return {
				params: {
					id: null
				},
				pointInfo: {},
				checkPointType: this.$type.checkPointType
			}
		},
		onLoad(options) {
			this.params.id = +options.id
			this.getCheckPointInfo()
		},
		onShow() {

		},
		computed: {
			
		},
		methods: {
			getCheckPointInfo() {
				this.$http.post('gridSystem/checkPoint/info', this.params).then(res => {
					if(res.code === 10000){
						this.pointInfo = res.data
					}
				})
			}
 		}
	}
</script>

<style lang="scss">
	page {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		background-color: #f5f5f5;
		min-height: 100%;
		height: auto;
		font-size: 28rpx;
	}
	.van-empty__description {
		margin-top: -4rpx !important;
	}

	.detail-container {
		background-color: #f5f5f5;

		.accept-ticket {
			height: 90rpx;
			color: #fff;
			position: fixed;
			bottom: 0;
			left: 0;
			right: 0;
			background-color: #3080FB;
		}
		.order-content {
			width: 750rpx;
			background-color: #fff;
			margin-bottom: 135rpx;
			padding-left: 20rpx;
			padding-top: 30rpx;
			margin-bottom: 20rpx;
			.content-item {
				// height: 72rpx;
				padding: 20rpx 20rpx 20rpx 0;
				display: flex;
				align-items: center;
				.item-name {
					width: 200rpx;
					margin-right: 20rpx;
				}
			}

			.content-img {
				width: 100%;
				height: 280rpx;
				display: flex;
				margin-top: 40rpx;

				.img-item {
					width: 220rpx;
					height: 220rpx;
					margin-right: 10rpx;

					image {
						width: 100%;
						height: 100%;
					}

					&:last-child {
						margin-right: 0;
					}
				}
			}

			.detail-item {
				width: 750rpx;
				height: 88rpx;
				display: flex;
				line-height: 88rpx;
				// padding-left: 20rpx;
				background-color: #fff;
				border-bottom: 2rpx solid #f5f5f5;

				.left {
					margin-right: 37rpx;
				}

				.sign {
					width: 115rpx;
					height: 88rpx;

					image {
						width: 100%;
						height: 100%;
					}
				}

				.name {
					margin-right: 26rpx;
				}
			}
		}
		.check-content {
			height: auto;
			background-color: #fff;
			padding: 20rpx;
			.title {
				height: 80rpx;
				font-size: 32rpx;
				text-align: center;
				line-height: 60rpx;
				border-bottom: 2rpx solid #DEDEDE;
				margin-bottom: 30rpx;
			}
			.check-item {
				margin-bottom: 40rpx;
			}
		}
		.van-empty {
			height: 300rpx;
			margin-bottom: 20rpx;
		}
	}
</style>
